home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 4 / The Arsenal Files 4 (Arsenal Computer).ISO / casm / au116-as.exe / UTIL / MESSAGE.CPP < prev    next >
C/C++ Source or Header  |  1994-05-22  |  1KB  |  43 lines

  1. #include "..\au.hpp"
  2.  
  3. /**************************************************************************/
  4. void au_invalid_option(AU *au, char *program, char option)
  5. {
  6.     au_printf_error(au, "Invalid Command Line Option '%c'", option);
  7.     au_printf(au, "Type @?2AU@?6 %s @?3-?@?H for help\n", program);
  8.     exit(0);
  9. }
  10. /**************************************************************************/
  11. void au_syntax_message(AU *au, char *action)
  12. {
  13.     au_printf(au, "@?5Syntax:@?H\n   @?2AU@?6 %s@?H ", action);
  14. }
  15. /**************************************************************************/
  16. void au_opt_filespec_message(AU *au)
  17. {
  18.     au_printf(au, "[@?3options@?H] [@?1filespec(s)@?H]\n\n");
  19. }
  20. /**************************************************************************/
  21. void au_filespec_message(AU *au)
  22. {
  23.     au_printf(au, "[@?1filespec(s)@?H]\n\n");
  24. }
  25. /***************************************************************************/
  26. void au_param_heading(AU *au)
  27. {
  28.     au_printf(au, PARAM_HEADING);
  29. }
  30. /****************************************************************************/
  31. void au_standard_opt_header(AU *au, char *action, char *options)
  32. {
  33.     au_syntax_message(au, action);
  34.     if (options != NULL && options[0] != '\0')
  35.     {
  36.         au_opt_filespec_message(au);
  37.         au_param_heading(au);
  38.         au_printf(au, options);
  39.     }
  40.     else
  41.         au_filespec_message(au);
  42. }
  43.